package idv.csc.contact.vo;

import idv.csc.contact.po.ContactPO;

public class ContactVO {
	
	private int attr1;

	private ContactPO contactPO = new ContactPO();
	private String firstname;
	private String lastname;
	private String email;
	private String telephone;
	
	public int getAttr1() {
		return attr1;
	}
	public void setAttr1(int attr1) {
		this.attr1 = attr1;
	}
	public String getFirstname() {
		return firstname;
	}
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	public String getLastname() {
		return lastname;
	}
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
	public ContactPO getContactPO() {
		contactPO.setEmail(getEmail());
		contactPO.setFirstname(getFirstname());
		contactPO.setLastname(getLastname());
		contactPO.setTelephone(getTelephone());
		return contactPO;
	}
	public void setContactPO(ContactPO contactPO) {
		setEmail(contactPO.getEmail());
		setFirstname(contactPO.getFirstname());
		setLastname(contactPO.getLastname());
		setTelephone(contactPO.getTelephone());
	}
	
}
